// src/api/ai.js
import axios from '@/utils/request'

export default {
  generatePPT(data) {
    return axios.post('/ai/generate-ppt', data)
  }
}
// src/stores/ai.js
import { defineStore } from 'pinia'

export const useAiStore = defineStore('ai', {
  state: () => ({
    generationHistory: []
  }),
  actions: {
    addToHistory(item) {
      this.generationHistory.unshift(item)
    }
  }
})